import request from '@/utils/request'

export default {
  //分页查询的方法
  getLaboratoryList(pageSize, pageNum, laboratoryVo) {
    return request({
      url: `/laboratory/findAll/${pageSize}/${pageNum}`,
      method: 'post',
      data: laboratoryVo
    })
  },
  //根据id查询
  getLaboratoryInfo(id) {
    return request({
      url: `/laboratory/findById/${id}`,
      method: 'get'
    })
  },
  //修改实验室
  updateLaboratoryInfo(laboratory) {
    return request({
      url: `/laboratory/update`,
      method: 'put',
      data: laboratory
    })
  },
  //删除实验室
  deleteLaboratoryId(id) {
    return request({
      url: `/laboratory/delete/${id}`,
      method: 'delete'
    })
  },
  //添加讲师
  addLaboratory(laboratory) {
    return request({
      url: `/laboratory/add`,
      method: 'post',
      data: laboratory
    })
  },
}